<template>
    <div id="header">
        <label for="search">
            <input type="text" placeholder="点击搜索机构/咨询/帖子" id="search">
        </label>
    </div>
</template>


<script>

    export default {
        name: "Header", // 指定组件名
        data: function () {
            return {
                
            }
        }
    }

</script>

<style lang="less" scoped>
    #header {
        width: 100vw;
        height: 40px;
        background-color: rgb(54,117,28);
        display: flex;
        align-items: center;
        justify-content: flex-start;

        label {
            position: relative;
        }

        #search {
            margin-left: 8vw;
            border-radius: 15px;
            display: inline-block;
            width: 60vw;
            height: 30px;
            line-height: 30px;
            font-size: 12px;
            text-indent: 10px;
        }

        svg {
            position: absolute;
            left: 10vw;
            top: 5px;
        }
    }
</style>